<template>
    <div class="box">
        <header> <van-nav-bar title="确认订单" left-text="返回" left-arrow @click-left="$router.back()" /></header>
        <div class="content">
            <van-cell :title="defaultAddress.name + '' + defaultAddress.tel" :label="defaultAddress.address"
                icon="location-o" is-link @click="$router.push('/order/list')" />
            <van-swipe-cell v-for="item in orderList" :key="item.id">
                <van-card :num="item.count" :price="`${item.price}.00`" :title="item.title" class="goods-card"
                    :thumb="item.image">
                </van-card>
            </van-swipe-cell>
        </div>
    </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
    computed: {
        ...mapGetters(['orderList', 'defaultAddress'])
    },
}
</script>